/**
 * @author 赵希奥
 * @date 2022/3/31 9:49
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        IUser user1, user2;
        user1 = new Teacher();
        user2 = new LoggerDecorator(user1);
        user2.login();
        // 等待2秒
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        user2.logout();
    }
}
